package com.team1.system.libraryrating.domain;

import com.team1.common.annotation.Excel;
import com.team1.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 评价管理对象 library_rating
 * 
 * @author hyy
 * @date 2023-04-09
 */
public class LibraryRating extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long userId;

    /** 图书id */
    private Long bookId;

    /** 评价等级 */
    @Excel(name = "评价等级")
    private Double rating;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setRating(Double rating)
    {
        this.rating = rating;
    }

    public Double getRating()
    {
        return rating;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("bookId", getBookId())
            .append("rating", getRating())
            .toString();
    }
}
